package com.qhit.service.impl;




import com.qhit.dao.OrderMapper;
import com.qhit.pojo.Order;
import com.qhit.pojo.Tourist;
import com.qhit.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Map> getList(HashMap hashMap) {
        return orderMapper.getList(hashMap);
    }

    @Override
    public List<Order> getList2() {
        return orderMapper.getList2();
    }

    @Override
    public Long getListCount(HashMap hashMap) {
        return orderMapper.getListCount(hashMap);
    }

    @Override
    public int add(Order order) {
        return orderMapper.add(order);
    }

    @Override
    public Order getOrderById(Integer id) {
        return orderMapper.getOrderById(id);
    }

    @Override
    public int delete(Integer id) {
        return orderMapper.delete(id);
    }

    @Override
    public List<Tourist> getTourist(Integer id) {
        return orderMapper.getTourist(id);
    }

    @Override
    public List getTouristOut(Integer id) {
        return orderMapper.getTouristOut(id);
    }

    @Override
    public int delTourist(Integer orderid, String touristid) {
        return orderMapper.delTourist(orderid,touristid);
    }

    @Override
    public int addTourist(Integer orderid, String touristid) {
        return orderMapper.addTourist(orderid,touristid);
    }

    @Override
    public int edit(Order order) {
        return orderMapper.edit(order);
    }
}
